home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Human Interface Toolbox / Concordia / SizeTkl.h < prev   
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.3 KB  |  68 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SizeTkl.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1991-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/10/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #ifndef _sizetkl_
  24. #define _sizetkl_
  25. /******************************************************************************\
  26. * Header Files
  27. \******************************************************************************/
  28.  
  29. #ifndef __MENUS__
  30. #include <Menus.h>
  31. #endif
  32.  
  33. #ifndef __TYPES__
  34. #include <Types.h>
  35. #endif
  36.  
  37. #ifndef _concordia_
  38. #include "Concordia.h"
  39. #endif
  40.  
  41.  
  42. /******************************************************************************\
  43. * Constants & Macros
  44. \******************************************************************************/
  45.  
  46. #define iconSize      32 //Horizontal/vertical size of ICON in pixels
  47. #define sicnSize      16 //Horizontal/vertical size of SICN in pixels
  48. #define iconItemGap   4  //Gap between item icon and item string in pixels
  49. #define markItemGap   0  //Gap between marker and item text
  50. #define cmmdItemGap   4  //Gap between item text and command key in pixels
  51. #define itemHorzMarg  1  //Distance between item and left/right of item cell
  52. #define itemVertMarg  0  //Distance between item and top/bottom of item cell
  53. #define iconVertMarg  1  //Distence between item icon and top/bottom of cell
  54. #define stdItemHeight 16 //Standard height of menu item
  55. #define scrnMargin 5     //Minimum # of pixels between menu and screen edges
  56.  
  57.  
  58. /******************************************************************************\
  59. * Function Prototypes
  60. \******************************************************************************/
  61.  
  62. void  DoSizeMsg (MenuHandle);
  63. short CalcItemHeight (Str255, ItemInfoPtr);
  64. short CalcItemWidth (Str255, ItemInfoPtr);
  65.  
  66.  
  67. #endif
  68.